package com.morizhang.merchanmanager.api.dao;

import com.morizhang.merchanmanager.api.model.CommodityDataModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommodityDataDao {
    void addNewRecord(CommodityDataModel newRecord);
    CommodityDataModel queryCommodityByBarcode(String barCode);
    List<CommodityDataModel> queryCommodityByName(String ProductName);
    void updateCommodity(CommodityDataModel commodityDataModel);

}
